#coding=utf-8

import urllib


def sent(tel, code, type_id='5011'):
    key = '774b72071607772f01f3dc89ad946c3f'
    url = 'http://v.juhe.cn/sms/send?mobile=%s&tpl_id=%s&tpl_value=%s&key=%s'
    code = '%23code%23%3D' + code
    url = url% (tel, type_id, code, key)
    body = _get(url)
    return body

def _get(url):
    f=urllib.urlopen(url)
    s=f.read()
    return s